<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core">
	<head><title>IGNORED</title></head>
	<body>
		<ui:composition template="../templates/layout.xhtml">
			<ui:define name="windowTitle">Daily Market | Customer | My Orders</ui:define>
			<ui:define name="logoImage"><h:graphicImage library="images" name="logo_header.jpg" alt="logo" /></ui:define>
			<ui:define name="content">
				<div id="content" class="graphic_bg">
					<div class="form-row header">My Orders</div>
					<h:messages globalOnly="true" styleClass="form-messages" fatalClass="form-messages error" errorClass="form-messages error" warnClass="form-messages warn" infoClass="form-messages" />
					<h:form>
						<h:dataTable rendered="#{invoiceListBean.renderInvoiceList}" value="#{invoiceListBean.invoiceList}" var="invoice" style="margin-top: 5px; border: solid 4px #FFFFFF; border-collapse: collapse;" rowClasses="odd-row, even-row" headerClass="header-row" columnClasses="id-col,data-col,data-col,tools-col" >
							<h:column>
								<f:facet name="header">Invoice ID</f:facet>
								<h:outputLink value="invoice.do" styleClass="table-link">
									<f:param name="order" value="#{invoice.invoiceId}" />#<h:outputText value="#{invoice.invoiceId}" />
								</h:outputLink>
							</h:column>
							<h:column>
								<f:facet name="header">Date / Time</f:facet>
								<h:outputText value="#{invoice.timePlacedString}" />
							</h:column>
							<h:column>
								<f:facet name="header">Order Status</f:facet>
								<h:outputText value="#{invoice.statusString}" styleClass="#{invoice.statusStyle}" />
							</h:column>
						</h:dataTable>
					</h:form>
					<h:panelGroup styleClass="notification" rendered="#{not invoiceListBean.renderable}">You have no past orders.</h:panelGroup>
				</div>
			</ui:define>
		</ui:composition>
	</body>
</html>